import { get, post } from "./http"

// export const reqlogin = (params) => post("/login", params)
// export const reqlist = (params) => get("/list", params)
/************菜单管理接口************/
//菜单添加
export const reqmenuadd = params => post("/api/menuadd",params)
//菜单列表
export const reqmenulist = params => get("/api/menulist",params)
//菜单详情
export const reqmenuinfo = params => get("/api/menuinfo",params)
//菜单修改
export const reqmenuedit = params => post("/api/menuedit",params)
//菜单删除
export const reqmenudelete = params => post("/api/menudelete",params)

/************角色管理接口************/
//角色添加
export const reqroleadd = params => post("/api/roleadd",params)
//角色列表
export const reqrolelist = params => get("/api/rolelist",params)
//角色详情
export const reqroleinfo = params => get("/api/roleinfo",params)
//角色修改
export const reqroleedit = params => post("/api/roleedit",params)
//角色删除
export const reqroledelete = params => post("/api/roledelete",params)


/************管理员管理接口************/
//管理员添加
export const requseradd = params => post("/api/useradd",params)
//管理员列表
export const requserlist = params => get("/api/userlist",params)
//管理员详情
export const requserinfo = params => get("/api/userinfo",params)
//管理员修改
export const requseredit = params => post("/api/useredit",params)
//管理员删除
export const requserdelete = params => post("/api/userdelete",params)
//管理员总数
export const requsercount = () => get("/api/usercount")
//管理员登陆
export const requserlogin = params => post("/api/userlogin",params)

/************分类管理接口************/
//分类添加
export const reqcateadd = params => post("/api/cateadd",params,true)
//分类列表
export const reqcatelist = params => get("/api/catelist",params)
//分类详情
export const reqcateinfo = params => get("/api/cateinfo",params)
//分类修改
export const reqcateedit = params => post("/api/cateedit",params,true  )
//分类删除
export const reqcatedelete = params => post("/api/catedelete",params)

/************规格管理接口************/
//规格添加
export const reqspecsadd = params => post("/api/specsadd",params)
//规格列表
export const reqspecslist = params => get("/api/specslist",params)
//规格详情
export const reqspecsinfo = params => get("/api/specsinfo",params)
//规格修改
export const reqspecsedit = params => post("/api/specsedit",params)
//规格删除
export const reqspecsdelete = params => post("/api/specsdelete",params)
//规格总数
export const reqspecscount = () => get("/api/specscount")


/************商品管理接口************/
//商品添加
export const reqgoodsadd = params => post("/api/goodsadd",params,true)
//商品列表
export const reqgoodslist = params => get("/api/goodslist",params)
//商品详情
export const reqgoodsinfo = params => get("/api/goodsinfo",params)
//商品修改
export const reqgoodsedit = params => post("/api/goodsedit",params,true)
//商品删除
export const reqgoodsdelete = params => post("/api/goodsdelete",params)
//商品总数
export const reqgoodscount = () => get("/api/goodscount")